<?php

namespace App\VO\ConvertibleCard;

// use App\Entities\ConvertibleCardModel;
use App\Entities\ConvertibleCardEntity;
use App\VO\Interfaces\IVOListItem;

class VOListItem implements IVOListItem
{
    use CommonTrait;

    public $id = 0;
    public $title = '';
    public $price = 0; //分
    public $endSaleDate = '';
    public $bannerImage = '';
    public $purchaseLimit = 0;
    public $cardValue = 0;

    public function __construct(ConvertibleCardEntity $cardEntity)
    {
        $this->assign($cardEntity);
        $this->cardValue = $cardEntity->getValue();
    }
}
